package com.gugee.ins.common.dal.service.mark.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.mark.InsRkProductMonthExtMapper;
import com.gugee.ins.common.dal.service.mark.InsRkProductMonthDao;
import com.gugee.ins.common.model.mysql.mark.InsRkProductMonth;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * insBlogger dao
 * @author Huangxin
 */
@Slf4j
@Service
public class InsRkProductMonthDaoImpl extends ServiceImpl<InsRkProductMonthExtMapper, InsRkProductMonth> implements InsRkProductMonthDao {

    /**
     * 月榜
     * @param rankMonth
     * @param category
     * @param limitStartTime
     * @param limitEndTime
     * @param limitCount
     */
    @Override
    public void insertRkProductMonth(int rankMonth, String category,long limitStartTime,long limitEndTime,long limitCount) {
        long now = System.currentTimeMillis() / 1000;
        baseMapper.insertRkProductMonth(rankMonth,category,limitStartTime,limitEndTime,limitCount,now);
    }
}
